#ifndef STUDENT_H
#define STUDENT_H

#include <QMainWindow>
#include <QSql>
#include <QSqlQueryModel>
#include <QSqlDatabase>
#include <QSqlQuery>
#include <QString>
#include <QSqlError>
#include <QSqlRecord>

namespace Ui {
class student;
}

class student : public QMainWindow
{
    Q_OBJECT

public:
    explicit student(QWidget *parent = 0);
    ~student();

    bool modify;        //修改标志
    QString UID;

    QSqlDatabase *dbconn;
    void setdbconn(QSqlDatabase *dbconn)
    {
        this->dbconn = dbconn;
    }

    void showinfo();    //显示学生信息

private slots:
    void on_Btn_Update_clicked();

    void on_Btn_Exit_clicked();

private:
    Ui::student *ui;
};

#endif // STUDENT_H
